package com.ruoyi.order.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;


@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("comment")
public class Comment extends BaseEntity implements Serializable {
    private static final long serialVersionUID =1L;
//  评论id
        @Excel(name = "评论id")
    @TableId(value = "comment_id" , type= IdType.AUTO)
    private Long commentId;
//    被评论人
        @Excel(name = "被评论人")
    private Long commenteeId;
//      父id
        @Excel(name = "用户id")
    private Long userId;
//      订单id
        @Excel(name = "订单id")
    private String orderId;
//      分数
        @Excel(name = "分数")
    private Float price;
//       内容
        @Excel(name = "内容")
    private String content;
//     评价等级
        @Excel(name = "评价等级")
    private String level;
//        状态
        @Excel(name = "状态", readConverterExp = "0正常,1停用")
    private String status;
//       删除标志
        @Excel(name = "删除标志" , readConverterExp = " 0代表存在,2代表删除")
    private String delFlag;
//        创建者
//        @Excel(name = "创建者")
//    private String createBy;

//



}
